home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr49
/
273_01.zip
/
GETAKEY.CC
< prev
next >
Wrap
Text File
|
1993-04-04
|
343b
|
15 lines
get_akey(char *ch, char *list)
/* Wait until one of the charaacters in the list is pressed. ch will be set
to the upper case value of the key pressed.
*/
{
char scan;
strupr(list);
while(1) {
get_ca(ch,&scan);
if(*ch=='\x00') continue;
*ch=toupper(*ch);
if(strchr(list,*ch)) return;
}
}